//
//  TestProblem594.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/21.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem594: XCTestCase {

    var problem = Problem594()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem594_Case1() throws {
        XCTAssertEqual(problem.findLHS([1,3,2,2,5,2,3,7]), 5)
    }

    func testProblem594_Case2() throws {
        XCTAssertEqual(problem.findLHS([1,2,3,4]), 2)
    }
    
    func testProblem594_Case3() throws {
        XCTAssertEqual(problem.findLHS([1,1,1,1]), 0)
    }
}
